$(document).ready(function (){
    $('body').on('click','#oneway tbody tr', function(e){
      $('#MSCB').val($(this).children('td:first').text());
      if ($.isNumeric($(this).children('td:nth-child(4)').text()))
      {
          $('#economy').removeAttr('disabled')
      }
      else
      {
          $('#economy').attr('disabled','');
      }
      if ($.isNumeric($(this).children('td:nth-child(5)').text()))
      {
          $('#business').removeAttr('disabled')
      }
      else
      {
          $('#business').attr('disabled','');
      }
      if ($.isNumeric($(this).children('td:nth-child(6)').text()))
      {
          $('#saver_flex').removeAttr('disabled')
      }
      else
      {
          $('#saver_flex').attr('disabled','');
      }
      $('#popup').modal('show');
    });  
});

